package com.fooddelivery.service;

import com.fooddelivery.dao.MenuItemDAO;
import com.fooddelivery.model.MenuItem;

import java.util.List;

public class MenuItemService {
    private MenuItemDAO menuItemDAO = new MenuItemDAO();

    public List<MenuItem> getMenuItemsByRestaurantId(int restaurantId) {
        return menuItemDAO.getMenuItemsByRestaurantId(restaurantId);
    }

    public MenuItem getMenuItemById(int id) {
        return menuItemDAO.getMenuItemById(id);
    }
}
